package com.sc.nft.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.PackageRecordDao;
import com.sc.nft.entity.vo.WriteOffRecordVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.service.PackageRecordService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 套餐记录表服务接口实现
 *
 * @author zxy
 * @since 2023-10-14 02:01:22
 * @description 汇付相关
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class PackageRecordServiceImpl implements PackageRecordService {
    private final PackageRecordDao packageRecordDao;

    @Override
    public Page<WriteOffRecordVO> getPage(Page page,Long packageId, String userTel, String operationUserTel, Date startRecordTime, Date endRecordTime) {
        return packageRecordDao.getPage(page, packageId, userTel, operationUserTel, startRecordTime, endRecordTime);
    }

    @Override
    public Integer writeOffCount(Long packageId) {
        return packageRecordDao.writeOffCount(packageId);
    }
}